//---------------------------------------------------------------------------



#include "ParamCfg.h"

//---------------------------------------------------------------------------


Param_Target *g_curTarget = NULL;
Bool    Param_Init()
{
     if(g_curTarget){
         return g_curTarget->Init();
     }
     return FALSE;
}
Bool    Param_WriteInteger(int key, DWORD  value)
{
     if(g_curTarget){
         return g_curTarget->Write(key,value);
     }
     return FALSE;
}
DWORD   Param_ReadInteger(int key,  DWORD  value)
{
     if(g_curTarget){
         return g_curTarget->Read(key,value);
     }
     return value;
}
Bool    Param_WriteFloat(int key,   float  value)
{
     if(g_curTarget){
         return g_curTarget->WriteFloat(key,value);
     }
     return FALSE;
}
float   Param_ReadFloat(int key,    float  value)
{
     if(g_curTarget){
         return g_curTarget->ReadFloat(key,value);
     }
     return value;
}
